package com.example.demo.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.demo.pojo.entity.Component;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface ComponentMapper extends BaseMapper<Component> {
    @Select("select component_id from warehouse.components where component_name like #{name}")
    int getIdByName(String name);
}
